package utils;

import android.os.*;

public class HttpHandler extends Handler {
	private HttpQueue queue;
	
	public HttpHandler(HttpQueue queue) {
		this.queue = queue;
	}
	
	public void dispatchMessage(Message msg) {
		HttpItem item = (HttpItem) msg.obj;
		item.httpHandler = null;
		queue.httpCallback(item, msg.what==1);
	}
}
